package com.kingsoft.miot.bridge.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kingsoft.miot.bridge.pojo.account.AccountUris;

/**
 * 账号控制 ：URL配置
 * 
 * @author HUJIANQING
 *
 */
@Configuration
public class AccountUriConfig {

	@Value("${miot.account.uris.echo}")
	private String echoUri;

	@Value("${miot.account.uris.controlunit}")
	private String controlunitUri;

	@Bean
	public AccountUris accountUris() {
		AccountUris accountUris = new AccountUris();
		accountUris.setEchoUri(echoUri);
		accountUris.setControlunitUri(controlunitUri);
		return accountUris;
	}
}
